//
//  NSString+LanguageSuited.m
//  SC_APP
//
//  Created by 李贤立 on 2017/6/26.
//  Copyright © 2017年 Capfer. All rights reserved.
//

#import "NSString+LanguageSuited.h"

@implementation NSString (LanguageSuited)
/*
 *  自动适应语言类型
 */
- (NSString *)S {
//    NSString *string = [[NSString alloc] init];
//    if (CoreInfo.LanguageType == LANGUAGE_TYPE_SIMPLIFIED) {
//        for (NSInteger i = 0; i < self.length; i ++) {
//            NSString *characters = [TYZReferenceTool traditionalChangeToSimplifiedWithCharacters:[self substringWithRange:NSMakeRange(i, 1)]];
//            string = [string stringByAppendingString:characters];
//
//        }
//    } else {
//        for (NSInteger i = 0; i < self.length; i ++) {
//            NSString *characters = [TYZReferenceTool simplifiedChangeToTraditionalWithCharacters:[self substringWithRange:NSMakeRange(i, 1)]];
//            string = [string stringByAppendingString:characters];
//        }
//    }
    return self;
}
/*
 *  与当前语言类型相反
 */
- (NSString *)F {
//    NSString *str = [self S];
//    NSString *string = [[NSString alloc] init];
//    if (CoreInfo.LanguageType == LANGUAGE_TYPE_SIMPLIFIED) {
//        for (NSInteger i = 0; i < self.length; i ++) {
//            NSString *characters = [TYZReferenceTool simplifiedChangeToTraditionalWithCharacters:[str substringWithRange:NSMakeRange(i, 1)]];
//            string = [string stringByAppendingString:characters];
//
//        }
//    } else {
//        for (NSInteger i = 0; i < self.length; i ++) {
//            NSString *characters = [TYZReferenceTool traditionalChangeToSimplifiedWithCharacters:[str substringWithRange:NSMakeRange(i, 1)]];
//            string = [string stringByAppendingString:characters];
//        }
//    }
    return self;
}
@end
